package edu.utexas.esel.jgraphpad.archpadplugin.graph;

import org.jgraph.graph.DefaultGraphCell;

/**
 * Interface implemented by user objects that enables them to keep reference
 * to the cell that contains it.
 *
 * @author svetoslavganov@mail.utexas.edu
 *
 */
public interface ContainerCellReference {

	/**
	 * Gets a reference to the {@link DefaultGraphCell} that contains
	 * this instance.
	 *
	 * @return The cell.
	 */
	public DefaultGraphCell getContainerCell();

	/**
	 * Sets a reference to the {@link DefaultGraphCell} that contains
	 * this instance.
	 *
	 * @param cell The cell.
	 */
	public void setContainerCell(DefaultGraphCell cell);
}
